﻿using System;
using System.Collections.Generic;
using System.Text;

namespace iPdf
{

    class Publisher: Actor
    {
        #region Properties
        private PublisherOption Option
        {
            get
            {
                return (PublisherOption)option;
            }
        }
        #endregion

        protected override void Prepare()
        {
            Option.Service.Login(Option.Username, Option.Password);
        }

        protected override void WorkOnItem(ActionItem item)
        {
            Helper.VerifyFile(item.Source);

            Option.Service.Upload(item.Source);
        }
    }


}
